﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="post测试.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="js/jquery-1.12.4.js"></script>
    <style>
        span {
          width:400px;
          height:300px;
          background-color:cadetblue; 
       }
    </style>
    <script>
        $(function () {/*主*/
            $(".denglu-").click(function () {
              //  alert("1")
                $.ajax({
                    type: "POST",
                    url: "post测试.aspx",
                    data: "name=" + $("#inp1").val(),
                    success: function (msg) {
                       // alert(msg)
                        $(".fm1").html(msg)
                    }
                });
                return false;
            });
        })
    </script>
</head>
<body>
    <form id="form1" runat="server" action="post测试.aspx" method="post">
        <input type="text" name="name" />

        <button class="denglu">33333</button>

        <div class="fm1">
            插入内容
        </div>
    </form>
</body>
</html>
